import { AddFormatFunc, hashMapRuleType } from "../types";

AddFormatFunc<hashMapRuleType>({

	type: "HASH_MAP",

	handle: (rule, FMC) => {
		return `{${rule[1].map(item => `${FMC(item[0])}: ${FMC(item[1])}`).join(", ")}}`;
	},

})
